<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta name="screen-orientation" content="portrait">
    <meta name="x5-orientation" content="portrait">
    <title>聚财通</title>
    <link rel="stylesheet" href="../../styles/h5/reset.min.css"/>
    <link rel="stylesheet" href="../../styles/h5/errortankuang.css"/>
    <!--以上为公共css样式-->
    <link rel="stylesheet" href="../../styles/h5/mymain.css"/>

    <script charset="utf-8" type="text/javascript" src="../../scripts/h5/jquery-1.9.1.min.js"></script>
    <script charset="utf-8" type="text/javascript" src="../../scripts/h5/jquery.modal.js"></script>

    <!--以上为公共js文件-->
</head>
<body class="body-color">
<div class="container">
    <div class="main-con">
        <div class="appli-img">
            <img src="../../image/h5/icon_win@2x.png" alt=""/>
        </div>
        <p class="appli-txt">转出申请成功</p>
        <div class="appli-company">
            <p class="product"></p>
            <p><span class="unit">￥</span><span class="origAmt"></span></p>
        </div>
        <div class="appli-time">
            <dl class="appli-l">
                <dt>
                    <img src="../../image/h5/apsl.png" alt=""/>
                </dt>
                <dd>转出申请</dd>
                <dd class="applicationTime"></dd>
            </dl>
            <dl class="appli-mid"></dl>
            <dl class="appli-r">
                <dt>
                    <img src="../../image/h5/aptime.png" alt=""/>
                </dt>
                <dd>计划到账时间</dd>
                <dd class="tradeTime"></dd>
            </dl>
        </div>
    </div>
</div>
</body>
<input type="button" class="footer zz-footTop" value="完成">
<script charset="utf-8" type="text/javascript" src="../../scripts/h5/utils.js"></script>
<script charset="utf-8" type="text/javascript" src="../../scripts/h5/index.js"></script>
<script charset="utf-8" type="text/javascript">
    var queryURLParameter = utils.queryURLParameter();
    var origAmt = queryURLParameter.origAmt;
    var applicationTime = queryURLParameter.applicationTime;
    var tradeTime = queryURLParameter.tradeTime;
    $(".applicationTime").html(utils.interceptDate(applicationTime,"-","month","-"));
    $(".tradeTime").html(tradeTime.slice(5,tradeTime.length));
    $(".origAmt").html(origAmt);

    $.ajax({
        url: utils.ajaxUrl()+"/h5/fund/opendAccount/getFundList",
        async: false,
        type: 'get',
        success: function (res) {
            var res = JSON.parse(res);
            console.log(res);
            if (res && res.retCode == '0000') {
                var product = res["resultList"];
                var productStr = '';
                for (var key in product) {
                    productStr = product[key];
                }
                $(".product").html(productStr);

            } else {
                utils.error("sx.png", "啊哦，数据异常");
            }
        },
        error: function () {
            utils.error("wlyc.png", "啊哦，连接不到网络呢");
        }
    });
    $footer.click(function (){
        window.location.href = "../../html/h5/fundOpenAccount.html";
    })
</script>
</html>
